﻿using System.Diagnostics;

namespace area;

public class Cube : Shape
{
    public float a;
    public float A
    {
        get { return a; }
        private set
        {
            a = value;
        }
    }

    public Cube(float a)
    {
        this.a = a;
    }
    
    public void sayType()
    {
        Console.WriteLine("Cube");
    }

    public float getArea()
    {
        return a * a;
    }
}